package cn.dingdan.sercice.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.dingdan.dao.AccountsDao;
import cn.dingdan.pojo.Accounts;
import cn.dingdan.sercice.AccountsService;
@Service("accountsServiceImpl")
public class AccountsServiceImpl implements AccountsService{

	@Resource(name="accountsDao")
	private AccountsDao accountsDao;
	
	@Override
	public List<Accounts> getAccounts() {
		return accountsDao.getAccounts();
	}

	@Override
	public int addAccouts(Accounts acc) {
		return accountsDao.addAccouts(acc);
	}

	@Override
	public int delAccouts(Integer accId) {
		return accountsDao.delAccouts(accId);
	}
	
}
